package com.imti.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.bean.Doctor;
import com.imti.mapper.DoctorMapper;
import com.imti.service.DoctorService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Doctor)表服务实现类
 *
 * @author makejava
 * @since 2023-01-30 15:52:34
 */
@Service("doctorService")
public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor> implements DoctorService {

    @Resource
    private DoctorMapper doctorMapper;

    @Override
    public List<Doctor> getDoc(Page page) {
        return doctorMapper.getDoc(page);
    }

    @Override
    public List<Doctor> getDocBySQLLimit(Integer pageNum, Integer pageSize) {
        return doctorMapper.getDocBySQLLimit(pageNum, pageSize);
    }
}

